/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package tc.maas.eikotrade.domain.dataobjects;

import java.util.List;

/**
 *
 * @author michel
 */
public class Transaction {
    public static enum TYPE{
        PURCHASE,
        SALE;
    }
    private final Party party;
    private final List<Item> items;
    private final TYPE type;

    public Transaction(Party party, List<Item> items, TYPE type) {
        this.party = party;
        this.items = items;
        this.type = type;
    }

    public List<Item> getItems() {
        return items;
    }

    public Party getParty() {
        return party;
    }

    public TYPE getType() {
        return type;
    }
    
    
}
